<!DOCTYPE html>
<html>

<head>
  <title>
    <%= title %>
  </title>
  <link rel='stylesheet' href='/stylesheets/style.css' />
</head>

<body>
  <section class="product">
    <h2>产品展示</h2>
    <!-- <ul>
      <li><a href="#">
          <img src="/DuDa_APP/public/images/1.jpg" alt="">
          <p>商品1</br><span>价格:80元</span></p>
        </a></li>
      <li><a href="#">
          <img src="/DuDa_APP/public/images/1.jpg" alt="">
          <p>商品2</br><span>价格:80元</span></p>
        </a></li>
      <li><a href="#">
          <img src="/DuDa_APP/public/images/1.jpg" alt="">
          <p>商品3</br><span>价格:80元</span></p>
        </a></li>
      <li><a href="#">
          <img src="/DuDa_APP/public/images/1.jpg" alt="">
          <p>商品4</br><span>价格:80元</span></p>
        </a>
      </li>
    </ul> -->

    <ul>
      <% for(var i=0;i<products.length;i++){ %>
        <li><a href="#">
            <img src="/DuDa_APP/public/images/1.jpg" alt="">
            <p>
              <%=goods[i].name%></br><span>价格:<%=goods[i].price%>元</span>
            </p>
          </a></li>
        <% } %>
    </ul>
  </section>
</body>

</html>